package me.gm.stcont.repository;

import me.gm.stcont.model.Individual;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface IndividualRepository extends
		JpaRepository<Individual, Integer> {

	public Page<Individual> findByType(Individual.Type type, Pageable pageable);

	public Page<Individual> findByTypeAndNickNameLike(Individual.Type type,
			String nickName, Pageable pageable);

}
